package com.ming.dao;

import com.ming.pojo.Customer;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Xu
 * Created by Intellij IDEA.
 * @create 2021/4/14 21:21
 */
@Mapper
@Repository
public interface CustomerMapper {
    public int addCustomer(Customer customer);

    public int deleteCustomer(int cid);

    public int updateCustomer(Customer customer);

    public Customer queryCustomerById(int cid);

    public List<Customer> queryCustomers();

    Integer queryCustomerByName(String username);

    Integer getMId();

    Integer queryCustomerName(String username);
}
